package com.storm.res;

import java.awt.Image;
import java.awt.Toolkit;
import java.io.File;

import com.storm.Constants;

/**
 * this class used to manager the res we used in our software
 * @author liuquan
 * @date 2013-12-02
 *
 */
public class ResManager {

	private  Image icon = null;
	private  Image arrow = null;
	private  Image ccd = null;
	private  Image obj = null;
	
	private static ResManager instance = new ResManager();
	
	private ResManager(){
		icon = Toolkit.getDefaultToolkit().getImage(Constants.RES_DIR + File.separator + "icon.png");
		arrow = Toolkit.getDefaultToolkit().getImage(Constants.RES_DIR + File.separator + "arrow.png");
		ccd = Toolkit.getDefaultToolkit().getImage(Constants.RES_DIR + File.separator + "ccd.png");
		obj = Toolkit.getDefaultToolkit().getImage(Constants.RES_DIR + File.separator + "obj.png");
	}

	
	public  Image getIcon() {
		return icon;
	}
	public  Image getArrow() {
		return arrow;
	}
	public Image getCcd() {
		return ccd;
	}
	public Image getObj() {
		return obj;
	}
	public static ResManager getInstance() {
		return instance;
	}
	
	
}
